package com.candy.control;

import com.candy.bean.UserInfo;
import com.candy.service.GetUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@CrossOrigin
@RestController
public class GetUserInfoController {
    @Autowired
    GetUserInfoService getUserInfoService;
    @RequestMapping("/getuserinfo")
    List<UserInfo> getUserInfo() {
        return getUserInfoService.getUserInfo();
    }
}
